instance = None
class TestInstance():
    @staticmethod
    def getInstance():
        global instance
        if not instance:
            instance = TestInstance()
        return instance
    def test(self, str):
        print(str)


if __name__ == '__main__':
    TestInstance.getInstance().test(666)